package com.kunge2013.chatbi.structureoutput;

import org.springframework.ai.converter.StructuredOutputConverter;
import org.w3c.dom.Document;

/**
 * @Author kunge2013
 * @Description XML 输出
 * @Date 2024/11/11 17:28
 * @Version 1.0
 */
public class XmlOutputConvert implements StructuredOutputConverter<Document> {
    @Override
    public String getFormat() {
        String template = """
				Your response should be in JSON format.
				Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation.
				Do not include markdown code blocks in your response.
				Remove the ```json markdown from the output.
				Here is the JSON Schema instance your output must adhere to:
				```%s```
				""";
        return template;
    }

    @Override
    public Document convert(String source) {
        return null;
    }
}
